package cn.wolfcode.trip.base.query;

import cn.wolfcode.trip.base.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class HotelQueryObject extends QueryObject{
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;//开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;//结束时间

    public Date getEndTime(){
        return DateUtil.getEndDate(endTime);
    }
}
